<?php

/**
 * @filename: boostrap.php
 * @usage: Contains autoloader and generic functions
 */

// Define the directory separator
define('ds', DIRECTORY_SEPARATOR);

include '../system/config/config.php';

function __autoload($class) {

	// String replace the class to get the directory structure
	$classname = str_replace('_', ds, $class);
	
	// Include the necessary file
	require_once strtolower($classname).'.class.php';

}

?>